package com.cochain.dynamicdatasource.service;

import com.cochain.dynamicdatasource.entity.po.Database;
import com.cochain.dynamicdatasource.entity.po.Tables;
import com.cochain.dynamicdatasource.mapper.MysqlDataBaseMapper;
import com.cochain.dynamicdatasource.mapper.MysqlDataBaseTableMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DataBaseService {
    @Resource
    private MysqlDataBaseMapper dataBaseMapper;

    @Resource
    private MysqlDataBaseTableMapper dataBaseTableMapper;

    public List<Database> get(){
       return dataBaseMapper.get();
    }

    public List<Tables> getTable(){
        return dataBaseTableMapper.get();
    }
}
